﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HippoMapper.Entity.Base;
using HippoEntity;
using System.Data;

namespace Test
{
    [EntityInfo("mytable")]
    public class Entity : IDelayEntity
    {
        private string _a;

        private string _b;

        [PropertyInfo("sEntity2")]
        public Entity2 entity2
        { get; set; }

        [PropertyInfo("sB")]
        public string B
        {
            get
            {
                return _b;
            }
            set 
            {
                _b = value; 
            }
        }

        [PropertyInfo("sA", DataType=DbType.DateTime)]
        [DelayProperty("AA")]
        public virtual string A
        {
            get
            {
                return _a;
            }
            set
            {
                _a = value;
            }
        }
    }
}
